<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Info: NdefNfcSpRecord::NdefNfcActRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="NfcInfo80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Info
   
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_ndef_nfc_sp_record.html">NdefNfcSpRecord</a>      </li>
      <li class="navelem"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html">NdefNfcActRecord</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NdefNfcSpRecord::NdefNfcActRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NdefNfcSpRecord::NdefNfcActRecord" -->
<p>The Action record is a Local Type specific to the Smart Poster.  
 <a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a>&gt;</code></p>

<p><a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11bd926c43e4852921914cb4c0f538a3"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcActRecord::Q_DECLARE_NDEF_RECORD" ref="a11bd926c43e4852921914cb4c0f538a3" args="(NdefNfcActRecord, QNdefRecord::NfcRtd,&quot;act&quot;, QByteArray(1, char(0)))" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>Q_DECLARE_NDEF_RECORD</b> (<a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html">NdefNfcActRecord</a>, QNdefRecord::NfcRtd,&quot;act&quot;, QByteArray(1, char(0)))</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NdefNfcSpRecord::NfcAction&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#a40e669f030535bb5fea5d57a4b8d0121">action</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the Smart Poster action from the record.  <a href="#a40e669f030535bb5fea5d57a4b8d0121"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f559341e3670fa04f3c9f097eb20bdc"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcActRecord::setAction" ref="a9f559341e3670fa04f3c9f097eb20bdc" args="(const NdefNfcSpRecord::NfcAction &amp;action)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#a9f559341e3670fa04f3c9f097eb20bdc">setAction</a> (const NdefNfcSpRecord::NfcAction &amp;action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the action of the Smart Poster to the specified value. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The Action record is a Local Type specific to the Smart Poster. </p>
<p>It suggests a course of action that the device should do with the content. The NFC Local Type Name for the action is "act" (0x61 0x63 0x74). The action record is defined as having a local scope only, and therefore it has meaning only within a Smart Poster record. A lone "act"-record SHALL be considered an error.</p>
<p>The device MAY ignore this suggestion. The default (i.e., the Action record is missing from the Smart Poster) is not defined. For example, the device might show a list of options to the user.</p>
<p>(Information taken from NFC Forum Smart Poster NDEF record specifications) </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a40e669f030535bb5fea5d57a4b8d0121"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcActRecord::action" ref="a40e669f030535bb5fea5d57a4b8d0121" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefNfcSpRecord::NfcAction NdefNfcSpRecord::NdefNfcActRecord::action </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve the Smart Poster action from the record. </p>
<p>The action is interpreted using an enum defined in the Smart Poster record class.</p>
<p>In the current version of the Smart Poster specification, the values 0, 1 and 2 have been assigned a meaning. 3+ are reserved for future use (RFU). If the byte in the record is therefore 3+, the RFU enum will be returned.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the action stored in the record if specified according to the current Smart Poster specification, or RFU for all other cases. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a></li>
<li>ndefnfcsprecord.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Aug 29 2011 22:30:51 for Nfc Info by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
